package at.main.gui;

import at.main.android.Graphics;
import at.main.util.AllImage;
import at.main.util.AllSound;

public class JamoPage {

	public int iTick;
	public AllSound allSound;
	
	public JamoPage() {
		iTick = 0;
		allSound = new AllSound();	
		
	}

	public void paint(Graphics g) {
		g.setColor(0x87CEFF);
		g.fillRect(0, 0, MyCanvas.iWidth, MyCanvas.iHeight);
		if (AllImage.img_jamo != null)
			g.drawImage(
							AllImage.img_jamo, 
							MyCanvas.iWidth / 2- AllImage.img_jamo.getWidth() / 2, 
							MyCanvas.iHeight / 2- AllImage.img_jamo.getHeight() / 2, Graphics.TOP
							| Graphics.LEFT
						);
	}

	public void update() {
		iTick++;
		if (iTick == 50) {
			MyCanvas.iCurrentPage = MyCanvas.k_SoundPage;
		}
		MyCanvas.clearInput();
	}
}
